package com.icom.sso.util;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class RetKit<T> implements Serializable{
	public static final boolean SUCCESS = true;
	public static final boolean FAIL = false;

	private boolean flag = true;

	private String msg = "ok";

	private T data;

	public RetKit(T data) {
		this.flag = true;
		this.data = data;
	}

	public void setFail() {
		this.flag = false;
	}

	public void setSuccess() {
		this.flag = true;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public void setData(T data) {
		this.flag = true;
		this.data = data;
	}
	
	public T getData() {
		return data;
	}
	
	public String getMsg() {
		return msg;
	}
	
	public boolean getFlag() {
		return flag;
	}
}
